module.exports = (router, controller) => {
    router.post('/signup', controller.auth.signUp.bind(controller.auth));
    router.post('/login', controller.auth.login.bind(controller.auth));

    // dictionary
    router.post('/dict', controller.dictionary.create.bind(controller.dictionary));
    router.post('/dict/update', controller.dictionary.modify.bind(controller.dictionary));
    router.post('/dict/query', controller.dictionary.query.bind(controller.dictionary));
    router.get('/dict/:id/delete', controller.dictionary.delete.bind(controller.dictionary));
};